home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / Online / PHP / include / php / ext / standard / php_lcg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-26  |  1.6 KB  |  44 lines

  1. /* 
  2.    +----------------------------------------------------------------------+
  3.    | PHP version 4.0                                                      |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997-2001 The PHP Group                                |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 2.02 of the PHP license,      |
  8.    | that is bundled with this package in the file LICENSE, and is        |
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.php.net/license/2_02.txt.                                 |
  11.    | If you did not receive a copy of the PHP license and are unable to   |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@php.net so we can mail you a copy immediately.               |
  14.    +----------------------------------------------------------------------+
  15.    | Authors: Sascha Schumann <sascha@schumann.cx>                        |
  16.    +----------------------------------------------------------------------+
  17. */
  18.  
  19. /* $Id: php_lcg.h,v 1.9 2001/02/26 06:07:23 andi Exp $ */
  20.  
  21. #ifndef PHP_LCG_H
  22. #define PHP_LCG_H
  23.  
  24. typedef struct {
  25.     long s1;
  26.     long s2;
  27. } php_lcg_globals;
  28.  
  29. double php_combined_lcg(void);
  30. PHP_FUNCTION(lcg_value);
  31. PHP_MINIT_FUNCTION(lcg);
  32.  
  33. #ifdef ZTS
  34. #define LCGLS_D php_lcg_globals *lcg_globals
  35. #define LCG(v) (lcg_globals->v)
  36. #define LCGLS_FETCH() php_lcg_globals *lcg_globals = ts_resource(lcg_globals_id)
  37. #else
  38. #define LCGLS_D void
  39. #define LCG(v) (lcg_globals.v)
  40. #define LCGLS_FETCH()
  41. #endif
  42.  
  43. #endif
  44.